package com.soilflow.common.domain;

import java.util.ArrayList;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.soilflow.common.mybatisplus.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author chengshihua
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_category2")
public class SysCategory2 extends BaseEntity {

    /**
     * 父部门id
     */
    private Long parentId;

    /**
     * 祖级列表
     */
    private String ancestors;

    /**
     * 部门名称
     */
    private String categoryName;

    /**
     * 显示顺序
     */
    private Integer orderNum;

    /**
     * 部门状态（0正常 1停用）
     */
    private String status;

    /** 子部门 */
    @TableField(exist = false)
    private List<SysCategory2> children = new ArrayList<SysCategory2>();

}

